package com.ryan.mdp.json;

import java.io.IOException;

import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.DeserializationContext;
import org.codehaus.jackson.map.deser.std.StdDeserializer;

import com.ryan.mdp.callback.DefaultMdpCallback;
import com.ryan.mdp.callback.MdpCallback;

public class MdpCallbackDeserializer extends StdDeserializer<MdpCallback> {

    protected MdpCallbackDeserializer(Class<MdpCallback> vc) {
        super(vc);
    }

    @Override
    public MdpCallback deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException,
            JsonProcessingException {
        return DefaultMdpCallback.INSTANCE;
    }

}
